import chineseMessages from 'ra-language-chinese';

export default {
    ...chineseMessages,
    resources: {
        posts: {
            name: "文章",
            fields: {
                author: '创作人',
                title: '标题',
                body: '文章正文',
                id: "编号"
            },
        },
        customer: {
            name: '客户',
            fields: {
                first_name: 'First name',
                last_name: 'Last name',
                dob: 'Date of birth',
            }
        },
        commands: {
            name: "订单"
        },
        products: {
            name: "产品"
        },
        invoices: {
            name: "发票",
        },
        categories: {
            name: "分类"
        },
        reviews: {
            name: "评论"
        },
        customers: {
            name: "客户"
        },
        segments: {
            name: "客户群体"
        },
        cars: {
            name: "车辆",
            fields: {
                carNumber: '车牌号',
                isUsable: '是否可用',
                carMileage: '里程数',
                id: "编号"
            },
        }

    },
    component: {
        search: "搜索",
        menu: {
            posts: "文章"
        }
    },
    auth: {
        404: "用户不存在"
    }, 
    pos: {
       
        search: "搜索",
        configuration: "设置",
        language: '语言',
        theme: {
            name: '主题',
            light: '明亮',
            dark: '暗黑',
        },
        dashboard: {
            monthly_revenue: '月报表',
            new_orders: '新订单',
            pending_reviews: '审核中',
            new_customers: '新客户',
            pending_orders: '进行中的订单',
            order: {
                items:
                    'by %{customer_name}, one item |||| by %{customer_name}, %{nb_items} items',
            },
            welcome: {
                title: 'Welcome to react-admin demo',
                subtitle:
                    "This is the admin of an imaginary poster shop. Fell free to explore and modify the data - it's local to your computer, and will reset each time you reload.",
                aor_button: 'react-admin site',
                demo_button: 'Source for this demo',
            },
        },
        menu: {
            sales: '销售',
            catalog: '分类',
            customers: '客户',
            cars: '车辆',
            posts: '文章'
        },
    },
    "Failed to fetch": "网络暂时无法链接，请稍后重试"
}